<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象的取值及修改值</title>
    <style>
        *{margin: 0;padding: 0;list-style-type: none;}
    </style>
</head>
<body>
    <script>
        let obj = {
            name: "xsf",
            sex: "武装直升机",
            age: 1008611
        }
        console.log(obj.name);
        //若定义奇奇怪怪的对象，可以使用[]来代替.进行操作
    </script>
</body>
</html>